<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'login.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="styles.css">
		<style type="text/css">
.btnlogin
{
	background:url(css/img/login.gif);
	width:40px;
	height:20px;
	cursor:hand;	
	BorderWidth:0px;
}
</style>
</head>
	<body onload="goforit()">
		<table align="left" width="20%" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left" height="24" colspan=2>
					<img src="css/img/1.gif" />
					<img src="css/img/1.gif" />
					<img src="css/img/1.gif" />
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center" height="24" colspan=2>
					<img src="css/img/servyou.jpg" />
				</td>
			</tr>

			<tr>
				<td height="24" valign="top" colspan=2>
					<div align="center">
						现在时间:&nbsp;&nbsp;<span id="clock"><script> 
						var dayarray=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
						var montharray=new Array("1","2","3","4","5","6","7","8","9","10","11","12")
						 
						function getthedate(){
						var mydate=new Date()
						var year=mydate.getYear()
						if (year < 1000)
						year+=1900
						var day=mydate.getDay()
						var month=mydate.getMonth()
						var daym=mydate.getDate()
						if (daym<10)
						daym="0"+daym
						var hours=mydate.getHours()
						var minutes=mydate.getMinutes()
						var seconds=mydate.getSeconds()
						var dn="上午"
						if (hours>=12)
						dn="下午"
						if (hours>12){
						hours=hours-12
						}
						if (hours==0)
						hours=12
						if (minutes<=9)
						minutes="0"+minutes
						if (seconds<=9)
						seconds="0"+seconds
						//change font size here
						var cdate="<small><font color='000000' face='Arial'><b>"+year+"年"+montharray[month]+"月"+daym+"日"+"<br/>&nbsp;&nbsp;"+dayarray[day]+" "+hours+":"+minutes+":"+seconds+"&nbsp; "+dn
						+"</b></font></small>"
						if (document.all)
						document.all.clock.innerHTML=cdate
						else
						document.write(cdate)
						}
						if (!document.all)
						getthedate()
						function goforit(){
						if (document.all)
						setInterval("getthedate()",1000)
						}
						 
						</script>
						</span>
 

			</div>
				</td>
			</tr>
			 <tr>
				<td valign="middle" colspan=2>
					<center>
						<b><span style="font-size: 10pt"><img
									src="css/img/dr_title.gif" /> </span> </b>
					</center>
				</td>
			</tr>
			<tr>
				<td align="right">
					<div style="font-size:12px">登录名：</div>
				</td>
				<td style="width: 181px">
					<input name="txtLoginID" Width="120px" />
					<span style="color: #ff0000">*</span>
				</td>
			</tr>
			<tr>
				<td align="right">
					<div style="font-size:12px">密 码：</div>
				</td>
				<td style="width: 181px; height: 43px">
					<input name="txtPwd" type="Password"  Width="125px" />
					<span style="color: #ff0000">*</span>
				</td>
			</tr>

			<tr>
				<td align="center">
				</td>
				<td align="center" style="width: 181px">
					 <input type="submit" class="btnlogin" value="&nbsp;"
						/>
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="right" colspan="2"
					style="width: 271px; height: 25px; background-color: wheat; text-align: left">
				</td>
			</tr>
		</table>

	</body>
</html>
